package lesson02;

import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;

public class Demo_204 {
    public static void main(String[] args) throws IOException {
        FileReader fileReader = new FileReader("d:/temp/test.txt");


        while (true) {
            int read = fileReader.read();

            if (read == -1) {
                break;
            } else {
                System.out.println(read);
            }

        }
        fileReader.close();
    }
}
